all:protobuf_server protobuf_client

protobuf_server:protobuf_server.cpp ../include/muduo/proto/codec.cc request.pb.cc
	g++ -std=c++11 -o $@ $^ -I../include -L../lib -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz

protobuf_client:protobuf_client.cpp ../include/muduo/proto/codec.cc request.pb.cc
	g++ -std=c++11 -o $@ $^ -I../include -L../lib -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz

.PHONY:clean
clean:
	rm -rf protobuf_server protobuf_client

# -I 指定头文件的路径
# -L 指定库文件的路径